home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0195.lzh / AMOSLIST / text0049.txt < prev    next >
Encoding:
Text File  |  1995-02-01  |  3.0 KB  |  81 lines

  1. > I have (half) written a paint package, but am experiencing several
  2. > problems with it.  (surprisingly)
  3.  
  4. You have my sympathy - I've been working on one for over a year.
  5.  
  6. > 1) Can anyone tell me the formula for a parabola?  Or preferably, can
  7. > anyone tell me how to write a curve tool like the one in Deluxe paint?
  8.  
  9. Somewhere I have the formula for Bezier curves - I'll see if I can dig it 
  10. up.  (I think it was in a math textbook...)
  11.  
  12. > 2) What I want to do, for example, is pick up a circle of colour 0 from
  13. > a background of colour 1 as a BOB, like:
  14. >        ______
  15. >       |  __  |<--colour 1
  16. >       | /  \ |
  17. >       | \__/<|---colour 0
  18. >       |______|
  19. > BUT I would like colour 1 to be transparent and NOT colour 0!  I found a
  20. > machine code procedure called MAKE_MASK on an AmosPro Productivity disk
  21. > and tried to use that in conjunction with NO MASK but without success.
  22.  
  23. The way I did this was to do it "by hand" reading each point in and 
  24. checking to see if it was BG or FG, sticking it on a spare screen, and 
  25. then grabbing the bob from there.  It took forever, though (see below :).
  26.  
  27. > 3) I presume there's no way to REDIM an array is there?
  28.  
  29. Nope, but...
  30.  
  31. > 4) Or SET BUFFER within a program?  I want to have a list of fonts but,
  32. > since I don't have a hard drive, I have hardly any.  When I gave the
  33. > program to a friend it said "out of variable space" or something.  Do I
  34. > just whack it up high and hope for the best?  If so, is there a way of
  35. > telling a maximum number of fonts that the buffer would hold?  I don't
  36. > think I can do an interface ActiveList directly from the FONT$() array
  37. > can I??
  38.  
  39. ...if you use banks instaed of arrays, you can make them semi-dynamic 
  40. just by opening and closing them...
  41.  
  42. > 5) Is there a faster version of PLOT and POINT as I'm doing "image
  43. > processing" (sort of..) in the program and it's REALLY slow.  I have
  44. > seen an image processor I think is in Amos (because you can Ami+A it
  45. > into Wbench) and it makes mine look foolish by being so fast - how does
  46. > it do it?
  47.  
  48. It probably uses an external ML function.  Try getting the Turbo Plus 
  49. extension - it has an F Plot command which is faster than the regular 
  50. plot command - I'm not sure if there's an F Point.  The image processing 
  51. thing I wrote in AMOS converted screens to banks so that I could get/plot 
  52. a point with Peek and Poke, which sped things up a bit, although you 
  53. still have the inexorable wait while the image is copied to and from the 
  54. bank...
  55.  
  56. > I think that'll have to do for now, although I'm sure I'll think of some
  57. > more soon!  Sorry about this, I hope you don't mind all this crap.  If
  58. > you can help with any of it I will be incredibly grateful as many of
  59. > these things have plagued me for AGES!!!
  60. > Thanks..
  61. > -- 
  62. > Semprini
  63.  
  64. I've got a boil on my Semprini...
  65.  
  66. > (Oh yeah...happy new year etc etc..)
  67.  
  68. Same to you.
  69.  
  70. --
  71. GCS -d+ H+ s++:- g+ p? !au a- w+++            !Productions 1995
  72. v* C+++ UB+++A++++ P++ L++ E+ N+++       http://satelnet.org/~mentat/
  73. K+ !W--- M-- V po- Y+ t++ 5+ jx G?
  74. R tv++ D- B--- e+ u** h f r++ !n y+ "No matter where you go, there you are."
  75.  
  76.  
  77.  
  78.